# coding: utf-8

import re
from sys import argv

Log = argv[1]


TPS = 0.0
Resp = 0.0
Counter = 0
Float_Pattern = re.compile(r"\d{1,}\.\d{1,}")

with open(Log) as inputs:
    for ln in inputs:
        if ln.strip():
            find_floats = Float_Pattern.findall(ln.strip())
            if find_floats:
                Counter += 1
                TPS += float(find_floats[0])
                Resp += float(find_floats[1])

print '-' * 30
print "        TPS: %.2f hits/s" % TPS
print "  Resp_time: %.1f ms" % (Resp*1000/Counter)
print "Concurrency:   %d thread(s)" % Counter 

